]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageList: Fall back to generic policy if media message has no app
authorSebastian Keller <skeller@gnome.org>
Fri, 17 Oct 2025 18:05:53 +0000 (20:05 +0200)
committerSebastian Keller <skeller@gnome.org>
Fri, 17 Oct 2025 18:05:53 +0000 (20:05 +0200)
That way the notification at least still follows the global settings.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8740
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3921>

js/ui/messageList.js

index ee4f7e258f73f789e25e844f1816ab084d9cc798..dfcc69d81a5522a0211c06d6127bd46727bb6d05 100644 (file)
@@ -841,7 +841,7 @@ class MediaMessage extends Message {
         this._updateNavButton(this._prevButton, this._player.canGoPrevious);
         this._updateNavButton(this._nextButton, this._player.canGoNext);
 
-        const appId = this._player.app?.id.replace(/\.desktop$/, '');
+        const appId = this._player.app?.id.replace(/\.desktop$/, '') ?? 'generic';
         if (this._policy?.id !== appId) {
             this._policy?.disconnectObject(this);